package com.selfdriving.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class Location implements Parcelable
{
	private double Latitude;
	private double longitude;

	public Location(double latitude, double longitude)
	{
		super();
		this.Latitude = latitude;
		this.longitude = longitude;
	}

	public double getLatitude()
	{
		return Latitude;
	}

	public void setLatitude(double latitude)
	{
		Latitude = latitude;
	}

	public double getLongitude()
	{
		return longitude;
	}

	public void setLongitude(double longitude)
	{
		this.longitude = longitude;
	}

	@Override
	public int describeContents()
	{
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		// TODO Auto-generated method stub
		dest.writeDouble(this.Latitude);
		dest.writeDouble(this.longitude);
	}

	public static final Parcelable.Creator<Location> CREATOR = new Parcelable.Creator<Location>()
	{

		@Override
		public Location createFromParcel(Parcel source)
		{
			return new Location(source.readDouble(), source.readDouble());
		}

		@Override
		public Location[] newArray(int size)
		{
			return new Location[size];
		}
	};
}
